<?php 
namespace app\index\controller;

use think\Controller;


class Lst extends Controller
{
	
  public function caselist()
  {
    $cateList1=db('cate')->select();
  
    
    $this->assign('list',$cateList1);
   

    $article=db('article')->order('id','desc')->select();
    // var_dump($article);
    $this->assign('art',$article);
   return $this->fetch();
  }

  public function productDetails()
  {
    $cateList1=db('cate')->select();
  
    
    $this->assign('list',$cateList1);
   
    $id=$_GET['id'];
   
    $article=db('article')->where('id',$id)->select();
    // var_dump($article);
    $this->assign('art',$article);
  return $this->fetch();
  }
    
}

?>